<div class="panel panel-primary">
    <div class="panel-heading">Vehículo</div>
    <table class="table table-bordered table-condensed table-striped uppercase">
        <thead>
            <tr>
                <th>Nombre</th>
                <th>Tipo</th>
                <th>Volumen</th>
                <th>Número económico</th>
                <th>Capacidad</th>
                <th>Marca</th>
                <th>Placas</th>
                <th>Color</th>
                <th>G.P.S.</th>
                <th>Modelo</th>
                <th>Ancho</th>
                <th>Altura</th>
                <th>Prof.</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php echo $view->vehicle->getName(); ?></td>
                <td><?php echo $view->vehicle->getStrType(); ?></td>
                <td><?php echo $view->vehicle->getFormatVolume(); ?></td>
                <td><?php echo $view->vehicle->getEconomicNumber(); ?></td>
                <td><?php echo $view->vehicle->getFormatCapacity(); ?></td>
                <td><?php echo $view->vehicle->getTradeMark(); ?></td>
                <td><?php echo $view->vehicle->getPlate(); ?></td>
                <td><?php echo $view->vehicle->getColor(); ?></td>
                <td><?php echo $view->vehicle->getGps(); ?></td>
                <td><?php echo $view->vehicle->getModel(); ?></td>
                <td><?php echo $view->vehicle->getFormatWidth(); ?></td>
                <td><?php echo $view->vehicle->getFormatHeight(); ?></td>
                <td><?php echo $view->vehicle->getFormatDeep(); ?></td>
            </tr>
        </tbody>
    </table>
</div>
<div class="panel panel-primary">
    <div class="panel-heading">Historial</div>
    <table class="table table-bordered table-condensed table-striped uppercase">
        <thead>
            <tr>
                <th>Conductor / controlador</th>
                <th>Asignado por</th>
                <th>Fecha de asignación</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($view->logs as $log): ?>
                <tr>
                    <td><?php echo $log->getDriver()->getFullName() . ' [' . $log->getDriver()->getTypeString() . ']'; ?></td>
                    <td><?php echo $log->getUser()->getFullName() . ' [' . $log->getUser()->getTypeString() . ']'; ?></td>
                    <td><?php echo $log->getCreationDate()->format('Y-m-d H:i:s'); ?></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>

